import {setAxios,setAxiosDelete} from "@/axios";

export const chatStart = (params: {
  message: string,
  parentUid?: string,
  promptCode: string
}) => setAxios('/chat/start', 'post', params)

export const wallet = () => setAxios('/wallet','get',{})

export const history = () => setAxios('/chat/history','get',{})

export const chatDetail = (params:{uid:string}) => setAxios('/chat/detail','get',params)

export const prompts = () => setAxios('/prompts','get',{})

export const deleteMsg = (params:{uid:string}) => setAxiosDelete(`/chat/records/${params.uid}`, {},false)
export const deleteAllMsg = () => setAxiosDelete(`/chat/records`,{},true)
